﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaov.SmartWeb.Model.Statistical.Tags
{
    public class DataGrid_ToolBar_Export : ITag
    {
        //新增行,新增子节点,删除行,保存,清空,表内计算,表间提取,分级汇总,继承
        public string Value(BaseReport BR)
        {
            if (BR.ViewUser.Super)
                return "false";
            else
            {
                int pmIndex = 9;
                string rb = "true";
                if (BR.Permissions != null)
                {
                    if (BR.Permissions[pmIndex].Allow)
                        rb = "false";
                    else
                        rb = "true";
                }
                return rb;
            }
        }
    }
}
